import {Injectable} from '@angular/core';

@Injectable()
export class Utils {
    public DelHtmlTag(str: string): string {
        //去掉所有的html标记
        str = str.replace(/<[^>]+>/g, "");
        str = str.replace(/&nbsp;/ig, "");
        return str;
    }
}
